<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .body{
            font-size: 18px;
            min-width: 600px;
        }
        .container{
            width: 500px;
            overflow: hidden;
            padding-right: 150px;
        }
        .left{
            width: 200px;
            height: 200px;
            float: left;
            background-color: green;
        }
        .right{
            width: 280px;
            height: 200px;
            float: right;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">左侧固定</div>
        <div class="right">右侧固定</div>
    </div>
</body>
</html>